package com.micro.shop.model;

import java.io.Serializable;

public class ProductPropertyValue implements Serializable {
    /**
     * 商品属性值id
     * 表 : bestfenxiao_product_property_value
     * 对应字段 : vid
     */
    private Integer vid;

    /**
     * 
     * 表 : bestfenxiao_product_property_value
     * 对应字段 : pid
     */
    private Integer pid;

    /**
     * 
     * 表 : bestfenxiao_product_property_value
     * 对应字段 : value
     */
    private String value;

    /**
     * 
     * 表 : bestfenxiao_product_property_value
     * 对应字段 : image
     */
    private String image;

    /**
     * 
     * 表 : bestfenxiao_product_property_value
     * 对应字段 : status
     */
    private Integer status;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table bestfenxiao_product_property_value
     *
     * @mbggenerated Fri Apr 20 02:14:07 CST 2018
     */
    private static final long serialVersionUID = 1L;

    /**
     * get method 
     *
     * @return bestfenxiao_product_property_value.vid：商品属性值id
     */
    public Integer getVid() {
        return vid;
    }

    /**
     * set method 
     *
     * @param vid  商品属性值id
     */
    public void setVid(Integer vid) {
        this.vid = vid;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_property_value.pid：
     */
    public Integer getPid() {
        return pid;
    }

    /**
     * set method 
     *
     * @param pid  
     */
    public void setPid(Integer pid) {
        this.pid = pid;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_property_value.value：
     */
    public String getValue() {
        return value;
    }

    /**
     * set method 
     *
     * @param value  
     */
    public void setValue(String value) {
        this.value = value == null ? null : value.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_property_value.image：
     */
    public String getImage() {
        return image;
    }

    /**
     * set method 
     *
     * @param image  
     */
    public void setImage(String image) {
        this.image = image == null ? null : image.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_product_property_value.status：
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * set method 
     *
     * @param status  
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     *
     * @param that
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProductPropertyValue other = (ProductPropertyValue) that;
        return (this.getVid() == null ? other.getVid() == null : this.getVid().equals(other.getVid()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getValue() == null ? other.getValue() == null : this.getValue().equals(other.getValue()))
            && (this.getImage() == null ? other.getImage() == null : this.getImage().equals(other.getImage()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
    }

    /**
     *
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getVid() == null) ? 0 : getVid().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getValue() == null) ? 0 : getValue().hashCode());
        result = prime * result + ((getImage() == null) ? 0 : getImage().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        return result;
    }
}